﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'usp_UPDMS_CFG_SETTING_MGT_Get_Setting_Value_By_Cd')
	BEGIN
		DROP Procedure usp_UPDMS_CFG_SETTING_MGT_Get_Setting_Value_By_Cd
	END
GO

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
/******************************************************************************
**	Name : usp_UPDMS_CFG_SETTING_MGT_Get_Setting_Value_By_Cd
**	Desc : 코드별 설정값 조회
**	Test Exec Query : Exec usp_UPDMS_CFG_SETTING_MGT_Get_Setting_Value_By_Cd 'CRD_Opt_01'
**	Called by : Global.cs
**	Program ID : AnyWhere
**	Auth : 송시명
**	Date : 2013-05-14
*******************************************************************************
**	Change History
*******************************************************************************
**	Date:		Author:		Description:
**	--------	--------	---------------------------------------
**	
*******************************************************************************/
CREATE PROC [dbo].[usp_UPDMS_CFG_SETTING_MGT_Get_Setting_Value_By_Cd]
@ls_cd nvarchar(20)
AS
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SET NOCOUNT ON

SELECT Setting_Value
  FROM UPDMS_CFG_SETTING_MGT WITH(NOLOCK)
 WHERE Setting_Cd = @ls_cd
   AND Use_Yn = 'Y'

GO